package com.yoda.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.MenuDto;
import com.yoda.entity.SysMenu;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface ISysMenuService extends IService<SysMenu> {

    /**
     * 菜单修改
     * @param dto
     * @return
     */
    public Result updateMenu(MenuDto dto);

    /**
     * 根据id删除菜单
     * @param id
     * @return
     */
    public Result deleteById(String id);

    /**
     * 查询所有菜单
     * @return
     */
    public Result getMenu();

    /**
     * 菜单添加
     * @param dto
     * @return
     */
    public Result addMenu(MenuDto dto);


    /**
     * 菜单详情
     * @param id
     * @return
     */
    public Result selectById(String id);

}
